Clean up unneeded includes
authorMatthias Clasen <mclasen@redhat.com>
Sun, 28 Aug 2011 05:40:10 +0000 (01:40 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 28 Aug 2011 05:40:10 +0000 (01:40 -0400)
gtk/gtkaboutdialog.c
gtk/gtkbutton.c
gtk/gtkdialog.c
gtk/gtkentrycompletion.c
gtk/gtkmenutoolbutton.c
gtk/gtkmessagedialog.c
gtk/gtkmountoperation.c
gtk/gtkprinteroptionwidget.c
gtk/gtkrecentchooserdefault.c

index ae6c91865fcffd794f6ee18c407d43cfead6a69d..dd21f4ecbe583d8b1f4525d52afd3b1b81fdc7d3 100644 (file)
@@ -47,7 +47,6 @@
 #include "gtkscrolledwindow.h"
 #include "gtkstock.h"
 #include "gtktextview.h"
-#include "gtkvbox.h"
 #include "gtkiconfactory.h"
 #include "gtkshow.h"
 #include "gtkmainprivate.h"
index aa3fe63b18e8ec845e11f95a194a72f98f20c433..d48eea49fc7459da8038acd08da7de06aead2170 100644 (file)
@@ -49,8 +49,7 @@
 #include "gtkmain.h"
 #include "gtkmarshalers.h"
 #include "gtkimage.h"
-#include "gtkhbox.h"
-#include "gtkvbox.h"
+#include "gtkbox.h"
 #include "gtkstock.h"
 #include "gtkiconfactory.h"
 #include "gtkactivatable.h"
index 5dfb7791bb4097c77904a0456585d36b88ba52e4..f743921711c1af8f6fb25575a4e67d4edbc54d9a 100644 (file)
@@ -34,7 +34,7 @@
 #include "gtkbbox.h"
 #include "gtklabel.h"
 #include "gtkmarshalers.h"
-#include "gtkvbox.h"
+#include "gtkbox.h"
 #include "gtkmain.h"
 #include "gtkintl.h"
 #include "gtkbindings.h"
index b88fa802f3b72fcc3ef13e394f3c4f23eec7d63f..d3d3a0405ef8576182236d10fb7dd6a86bda4512 100644 (file)
@@ -79,7 +79,7 @@
 #include "gtktreeview.h"
 #include "gtkscrolledwindow.h"
 #include "gtksizerequest.h"
-#include "gtkvbox.h"
+#include "gtkbox.h"
 #include "gtkwindow.h"
 #include "gtkentry.h"
 #include "gtkmainprivate.h"
index a0427379b170f799854090865f717d18a29141bc..59518036b1b2f1b1803c495a5474d813cfe05237 100644 (file)
@@ -25,8 +25,7 @@
 
 #include "gtktogglebutton.h"
 #include "gtkarrow.h"
-#include "gtkhbox.h"
-#include "gtkvbox.h"
+#include "gtkbox.h"
 #include "gtkmenu.h"
 #include "gtkmain.h"
 #include "gtksizerequest.h"
index bd3a1306eeb22e4e3fe3809c27dd280bf23a637a..19ab948efcfa470d9e42547aaa6932e405897823 100644 (file)
@@ -33,8 +33,7 @@
 #include "gtkaccessible.h"
 #include "gtkbuildable.h"
 #include "gtklabel.h"
-#include "gtkhbox.h"
-#include "gtkvbox.h"
+#include "gtkbox.h"
 #include "gtkimage.h"
 #include "gtkstock.h"
 #include "gtkiconfactory.h"
index c3e47214588e909432ad4fb38122cd4bbcf4912c..42eb301b91f4bb360d09af1638d05e936963924e 100644 (file)
@@ -35,7 +35,7 @@
 #include "gtkhbox.h"
 #include "gtkintl.h"
 #include "gtklabel.h"
-#include "gtkvbox.h"
+#include "gtkbox.h"
 #include "gtkmessagedialog.h"
 #include "gtkmountoperation.h"
 #include "gtkprivate.h"
index fdc2e1dac55209389c771b80e717935acc2640c2..840fb26414693cbbeb3405ac2c30afadb40badbb 100644 (file)
@@ -34,7 +34,7 @@
 #include "gtkliststore.h"
 #include "gtkradiobutton.h"
 #include "gtkstock.h"
-#include "gtktable.h"
+#include "gtkgrid.h"
 #include "gtktogglebutton.h"
 #include "gtkorientable.h"
 #include "gtkprivate.h"
@@ -783,9 +783,9 @@ construct_widgets (GtkPrinterOptionWidget *widget)
       {
         GtkWidget *label;
         
-        priv->filechooser = gtk_table_new (2, 2, FALSE);
-        gtk_table_set_row_spacings (GTK_TABLE (priv->filechooser), 6);
-        gtk_table_set_col_spacings (GTK_TABLE (priv->filechooser), 12);
+        priv->filechooser = gtk_grid_new ();
+        gtk_grid_set_row_spacing (GTK_GRID (priv->filechooser), 6);
+        gtk_grid_set_column_spacing (GTK_GRID (priv->filechooser), 12);
 
         /* TODO: make this a gtkfilechooserentry once we move to GTK */
         priv->entry = gtk_entry_new ();
@@ -801,26 +801,16 @@ construct_widgets (GtkPrinterOptionWidget *widget)
         gtk_widget_set_valign (label, GTK_ALIGN_CENTER);
         gtk_label_set_mnemonic_widget (GTK_LABEL (label), priv->entry);
 
-        gtk_table_attach (GTK_TABLE (priv->filechooser), label,
-                          0, 1, 0, 1, GTK_FILL, 0,
-                          0, 0);
-
-        gtk_table_attach (GTK_TABLE (priv->filechooser), priv->entry,
-                          1, 2, 0, 1, GTK_FILL, 0,
-                          0, 0);
+        gtk_grid_attach (GTK_GRID (priv->filechooser), label, 0, 0, 1, 1);
+        gtk_grid_attach (GTK_GRID (priv->filechooser), priv->entry, 1, 0, 1, 1);
 
         label = gtk_label_new_with_mnemonic (_("_Save in folder:"));
         gtk_widget_set_halign (label, GTK_ALIGN_START);
         gtk_widget_set_valign (label, GTK_ALIGN_CENTER);
         gtk_label_set_mnemonic_widget (GTK_LABEL (label), priv->combo);
 
-        gtk_table_attach (GTK_TABLE (priv->filechooser), label,
-                          0, 1, 1, 2, GTK_FILL, 0,
-                          0, 0);
-
-        gtk_table_attach (GTK_TABLE (priv->filechooser), priv->combo,
-                          1, 2, 1, 2, GTK_FILL, 0,
-                          0, 0);
+        gtk_grid_attach (GTK_GRID (priv->filechooser), label, 0, 1, 1, 1);
+        gtk_grid_attach (GTK_GRID (priv->filechooser), priv->combo, 1, 1, 1, 1);
 
         gtk_widget_show_all (priv->filechooser);
         gtk_box_pack_start (GTK_BOX (widget), priv->filechooser, TRUE, TRUE, 0);
index 3ddc36478d232c8c59229e22a64b337f8147ea47..20b66b5bd7c7c99178a1a8945dcb41487c574959 100644 (file)
@@ -1,7 +1,7 @@
 /* GTK - The GIMP Toolkit
  * gtkrecentchooserdefault.c
  * Copyright (C) 2005-2006, Emmanuele Bassi
- * 
+ *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
  * License as published by the Free Software Foundation; either
@@ -58,7 +58,6 @@
 #include "gtkseparatormenuitem.h"
 #include "gtksizegroup.h"
 #include "gtksizerequest.h"
-#include "gtktable.h"
 #include "gtktreemodelsort.h"
 #include "gtktreemodelfilter.h"
 #include "gtktreeselection.h"